{% extends 'common/base.html' %}
{% block title %}
    首页
{% endblock %}
{% block page_content %}
    <div class="row">
        <div class="col-md-1"></div>
        <div class="col-md-10" style="text-align: center">
            {{ wtf.quick_form(form) }}
            <br>
            <div class="mycontent" style="width: 100%;height: 100%;text-align: left;">
                {% for post in allposts %}
                    <div class="list-group">
                        <a href="#" class="list-group-item active" style="overflow: hidden">
                            <h4 class="list-group-item-heading">{{ post.content }}</h4>
                            <p>发帖时间：{{ moment(post.timestamp).format('YYYY年MM月DD日') }}</p>
                            <p style="float: right">-->发帖人：{{ post.user.username }}</p>
                        </a>
                    </div>
                {% endfor %}
            </div>
        </div>
        <div class="col-md-1"></div>
    </div>
{% endblock %}